<?php
use Smtp\Smtp;

$config = [
    'server'   => 'smtpdm.aliyun.com', //smtp服务器
    'port'     => 80, //端口号
    'email'    => '@1122334455.net', //服务器用户邮箱
    'user'     => '@1122334455.net', //账号
    'password' => '', //密码
];
$smtp = new Smtp($config['server'], $config['port'], true, $config['email'], $config['password']);
$resp = $smtp->sendmail($source, $config['email'], "=?UTF-8?B?" . base64_encode('标题') . "?=", '正文', 'TXT');
